<%@ Reference Page="~/ThumbNails.aspx" %>
<%@ Page language="c#" EnableViewState="true" Inherits="FlashBack.Web.AttributeEditor" CodeFile="AttributeEditor.aspx.cs" CodeFileBaseClass="FlashBack.Web.ThumbNails" %>

<HTML>
  <HEAD>
		<meta name="GENERATOR" Content="Microsoft Visual Studio 7.0">
		<meta name="CODE_LANGUAGE" Content="C#">
		<LINK REL="stylesheet" Type="text/css" HREF="FlashBack.css">
  </HEAD>
	
  <BODY>
		<form method="post" runat="server" ID="Form1">
		<table width="100%" height="100%" border="0" cellpadding="4" cellspacing="0">
			<tr>
				<td width="90%" colspan="2" class="Header">
					<asp:label height="26" id="detailstitle" runat="server"></asp:label>
				</td>
			</tr>
			<tr><td colspan="2">
				<asp:Label Visible="False" ID="MsgLabel" Runat="server"></asp:Label>
			</td></tr>
		<tr valign="top">
			<td>		
				<asp:DataGrid AllowPaging="True" OnPageIndexChanged="ChangePageIndex"
							PagerStyle-Mode="NumericPages" PageSize="15"
							PagerStyle-HorizontalAlign="Right"
							ID="DetailsGrid" CssClass="searchBody" Runat="server" 
							AutoGenerateColumns="False" BorderStyle="Solid" 
							BorderColor="Green" Width="98%" CellPadding="4"
							OnItemDataBound="onRowBound">
					<HeaderStyle CssClass="bandHeader">
					</HeaderStyle>

					<Columns>
						<asp:TemplateColumn ItemStyle-HorizontalAlign="Center" ItemStyle-VerticalAlign="Middle" HeaderText="">
							<ItemTemplate>
								<asp:CheckBox id="Select" runAt="Server" />
							</ItemTemplate>
						</asp:TemplateColumn>
						
						<asp:TemplateColumn ItemStyle-HorizontalAlign="Center" ItemStyle-VerticalAlign="Middle" ItemStyle-Width="1%" HeaderText="">
							<ItemTemplate>
								<asp:Image ImageUrl='<%# DataBinder.Eval(Container.DataItem, "tnpath") %>' Width="40" Height="40" runAt="Server" />
							</ItemTemplate>
						</asp:TemplateColumn>
						
						<asp:BoundColumn DataField="Title" HeaderText="Title"></asp:BoundColumn>
						<asp:BoundColumn DataField="Keywords" HeaderText="Keywords"></asp:BoundColumn>
						<asp:BoundColumn DataField="DateTaken" ItemStyle-Wrap="False" ItemStyle-Width="1%" HeaderText="Date Taken"></asp:BoundColumn>
					</Columns>
				</asp:DataGrid>
			</td>
			<td>
				<table cellspacing="1" class="popupTable" width="92%" cellpadding="3">
				<tr class="popupTableHeader" align="middle"><td>Attributes</td></tr>
				<tr class="popupTableBody"><td>
					<asp:DataList CssClass="popupTableBody" id="keywordList" runat="server" RepeatLayout="Table" RepeatDirection="Vertical">
						<ItemTemplate>
							<asp:CheckBox id="keyword" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Name") %>' TextAlign="Right"/>
						</ItemTemplate>
					</asp:DataList>
					<div align="center">
					<asp:Button ID="Apply" OnClick="OnApply" Text="Set" Runat="server"></asp:Button>&nbsp;
					<asp:Button ID="Clear" OnClick="OnClear" Text="Clear" Runat="server"></asp:Button>
					</div>
				</td></tr>
				</table>
			</td>
		</tr>
		</table>
		</form>
	</BODY>
</HTML>
